﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.Web;
using System.ServiceModel;
using System.Runtime.Serialization;

namespace BBECServiceBusAdapter

{
        [DataContract(Namespace = Helper.Namespace)]
        public class ContractBase
        {
            [DataMember(IsRequired = true)]
            public string ID;
            [DataMember(IsRequired = false)]
            public string ConstituentID = "";
            [DataMember(IsRequired = true)]
            public BBECServiceBusAdapter.ConstituentDataContractExtensions.ActionType Action;
            [DataMember(IsRequired = false)]
            public string Status = "";
            [DataMember(IsRequired = false)]
            public string ChangedByUserName = "";
            [DataMember(IsRequired = false)]
            public List<AttributeData> Attributes;

        }

        [DataContract(Namespace = Helper.Namespace)]
        public class AttributeData
        {
            [DataMember(IsRequired = true)]
            public string AttributeName = "";
            [DataMember(IsRequired = false)]
            public string AttributeValue = "";

        }

}